From 2b3c9d644d45a540cfee34bee7de5612374682bd Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 12 Mar 2004 17:41:55 +0000 Subject: [PATCH] Give cache type precedence over container type. (Liek the comment said...) git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@733 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index 4df42e887..9166ca4c4 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -483,13 +483,6 @@ get_cache_icon(const waypoint *waypointp) * For icons, type overwrites container. So a multi-micro will * get the icons for "multi". */ - switch (waypointp->gc_data.container) { - case gc_micro: - return "Micro-Cache"; - break; - default: - break; - } switch (waypointp->gc_data.type) { case gt_virtual: return "Virtual cache"; @@ -502,6 +495,13 @@ get_cache_icon(const waypoint *waypointp) default: break; } + switch (waypointp->gc_data.container) { + case gc_micro: + return "Micro-Cache"; + break; + default: + break; + } return NULL; } -- 2.30.2